<?php
header('Content-type: text/html; charset=utf-8');
?>
<?php 
$mysql_server_name = "localhost";
$mysql_username = "root";
$mysql_password = "root";
$mysql_database = "db_shop";

 $conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password);

$id= $_GET['id'];
$sql = "select * from custom  where document_id='$id'";
	//require_once('page.php');
	//page($sql,'room.php',"5");//这几句是分页的句子！！
	//$sql = " SELECT * FROM room ORDER BY room_id DESC limit".$begincount.",".$rows; 
	mysql_query ("set names 'utf8'");
      mysql_select_db($mysql_database);
   $result=mysql_query( $sql);
$row =mysql_fetch_array($result,MYSQL_ASSOC);
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1">房客信息</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">&nbsp;</span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
	     
      <form name="form" id="form"  method="post" action="customupdate_ok.php" onSubmit=" return form_onsubmit();" >
	  <input name="id" value="<?php echo $id;?>" type="hidden" />

		<tr>
          <td width="18%" bgcolor="d3eaef" class="STYLE6" ><div align="center">姓名:</div></td>
          <td width="82%" colspan="4"bgcolor="#FFFFFF" class="STYLE19"><input name="name" type="text" id="name" size="20" value="<?php echo $row['name'];?>"  /></td>
	
		</tr>
		  <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">性别:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><div align="left"><input name="sex" type="text" id="sex" size="20"   value="<?php echo $row['gender'] ?>" /></div></td>
	      
		  </tr>
        <tr>
          <td bgcolor="d3eaef" class="STYLE6" ><div align="center">年龄:</div></td>

          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="age" type="text" id="age" value="<?php echo $row['age'] ?>"  /></td>
	   
        </tr>
				<tr>
          <td width="18%" bgcolor="d3eaef" class="STYLE6" ><div align="center">证件类型:</div></td>
          <td width="82%" colspan="4"bgcolor="#FFFFFF" class="STYLE19"><?php echo $row['document_type'] ?></td>
	
		</tr>
				<tr>
          <td width="18%" bgcolor="d3eaef" class="STYLE6" ><div align="center">证件编号:</div></td>
          <td width="82%" colspan="4"bgcolor="#FFFFFF" class="STYLE19"><?php echo $row['document_id'] ?></td>
	
		</tr>

<tr>
          <td height="19" bgcolor="d3eaef" class="STYLE6" ><div align="center">会员编号:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="member" type="text" id="member" size="20"  value="<?php echo $row['member_id'] ?>" /></td>
	      </tr>
        <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">入住时间:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="checktime" type="text" id="checktime" size="10"   value="<?php echo $row['check_time'] ?>"/></td>
        </tr>
		      <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">退房时间:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="outtime" type="text" id="outtime" size="10"   value="<?php echo $row['check_out_time'] ?>"/></td>
        </tr>
		      <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">入住人数:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="number" type="text" id="number" size="10"   value="<?php echo $row['check_num'] ?>"/></td>
        </tr>
		      <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">房间编号:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="room_id" type="text" id="room_id" size="10"   value="<?php echo $row['room_id'] ?>"/></td>
        </tr>      <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">房间价格:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="cost" type="text" id="cost" size="10"   value="<?php echo $row['room_cost'] ?>"/></td>
        </tr>
		      <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">押金:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="deposit" type="text" id="deposit" size="10"   value="<?php echo $row['deposit'] ?>"/></td>
        </tr>
		      <tr>
          <td bgcolor="d3eaef" class="STYLE6"><div align="center">折扣:</div></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="benefits" type="text" id="benefits" size="10"   value="<?php echo $row['enjoy_benefits'] ?>"/></td>
        </tr>
		

		   <tr>
          <td bgcolor="d3eaef" class="STYLE6"></td>
          <td colspan="4" bgcolor="#FFFFFF" class="STYLE19"><input name="queren" type="submit" id="queren" value="修改"   />
		  <input name="queren" type="reset" id="queren" value="重填"   />
          <input name="back" type="button" id="back" value="取消返回"  onClick="javascript:history.go(-1)"  /></td>
        </tr>
      </form>
	
    </table></td>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        
       
          
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>